package com.example.mvvmrxjavaokhttpretrofit.model_test.model;

import com.example.mvvmrxjavaokhttpretrofit.base.BaseModel;
import com.example.mvvmrxjavaokhttpretrofit.net.rx.RxRestClient;


public class TestModel extends BaseModel {

    public void getData(String url,String param){
        getRemoteDatas(RxRestClient.builder()
            .url(url)
//            .headersParam("","")
            .param("token","A2E0C3CDEA081D3BFC34F8FE23A15886")
            .param("type","1")
            .param("tamp","1462377600")
            .param("client","ceshi")
            .build()
            .post()
                ,Object.class //数据解析最终的数据bean(自己定义)
                ,url);
    }
}
